LOCAL_PATH:=$(call my-dir)

# Link to libICE
include $(CLEAR_VARS)
LOCAL_MODULE := libICE
LOCAL_SRC_FILES := ../../$(LOCAL_MODULE)/libs/$(TARGET_ARCH_ABI)/$(LOCAL_MODULE).so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../$(LOCAL_MODULE)/include
include $(PREBUILT_SHARED_LIBRARY)

# Now build the stuff
include $(CLEAR_VARS)

LOCAL_MODULE:=libSM

LOCAL_SRC_FILES := \
	sm_auth.c \
	sm_client.c \
	sm_error.c \
	sm_genid.c \
	sm_manager.c \
	sm_misc.c \
	sm_process.c

LOCAL_SHARED_LIBRARIES:= libICE

include ../libX11/libX11.mk

include $(BUILD_SHARED_LIBRARY)
